package com.gperp.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.gperp.common.CustomerResCondition;
import com.gperp.common.PortalCondition;
import com.gperp.pojo.AsCustoms;
import com.gperp.pojo.AsSystemconfig;
import com.gperp.pojo.Result;

public interface CustomerResService {

	//查询所有
	public Result query(int page,int rows,@Param("condition")CustomerResCondition condition);
	
	/**
	 * 根据ID查询
	 * @param id
	 * @return
	 */
	public AsCustoms queryById(Long id);
	
	//停用启用
	public int updatecustomStatus(Integer id,Integer status);
	
	//修改用户信息
	public int updateCustomer(AsCustoms ascustoms);
	
	//添加客户
	public AsCustoms insert(AsCustoms as);
	
	public List<AsCustoms> queryByCname(String customename);

	//查询客户类型
	public List<AsSystemconfig> queryCustomtype(int configtype);

	public List<AsCustoms> queryByCnameStart(String customname);
}
